/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Ventsi
 */
public class TestCage {
    
    public static void main(String[] args) {
//        Cage<Lion> lionCage = new Cage<> () {};
//        Lion king = new Lion() {
//
//            @Override
//            public int speed() {
//                throw new UnsupportedOperationException("Not supported yet.");
//            }
//        }; 
//        Animal a = king;
//        lionCage.add(king);
//        
//        Butterfly monarch = new Butterfly() {};
//        Cage<Butterfly> butterflyCate = new Cage<>();
//        
//        butterflyCate.add(monarch);
//        
//        Cage<? extends Animal> animalCage = lionCage;
//        animalCage.add(king);
//        animalCage.add(monarch);    
        
        
    }
    
}
